package main

import (
	grpc2 "google.golang.org/grpc"
	"zk3/common/grpc"
	"zk3/common/models"
	"zk3/common/mysql"
	"zk3/rpc/internal"
)

func main() {
	mysql.InitMysql()
	mysql.Db.AutoMigrate(models.User{}, models.UserWork{}, models.UserGive{}, models.UserComment{})
	grpc.Grpc(func(server *grpc2.Server) {
		internal.Register(server)
	})
}
